#!/bin/csh
set i=1
foreach percent (5 15)
	foreach algName (Coarse Fine Optimistic OptimisticGlobal Lazy LockFree)
		foreach threadNum (2 4 8 12 16 32 48 64 96 128 192 256)
			@ i++
			set j=3
			while ($j > 0)
				echo "./mpp_cpp_spark $1 $algName $threadNum 1000000 100000 $percent $percent 500 10"
				./mpp_cpp_spark $i $algName $threadNum 1000000 100000 $percent $percent 500 10 >> SPARK_CPP/resultsThreadsCPP.txt
				@ j--
			end 
		end 
	end
end


foreach threadNum (16 32)
	foreach algName (Coarse Fine Optimistic OptimisticGlobal Lazy LockFree)
		foreach percent  (45 40 35 30 25 20 15 10 5)
			@ i++
			set j=3
			while ($j > 0)
				echo "./mpp_cpp_spark $1 $algName $threadNum 1000000 100000 $percent $percent 500 10"
				./mpp_cpp_spark $i $algName $threadNum 1000000 100000 $percent $percent 500 10 >> SPARK_CPP/resultsPercentCPP.txt

				@ j--
			end 
		end 
	end
end
